package com.vinfai.patterns.observers;

public class MyDisplay implements Observer {
	ISubject obserable;
	public MyDisplay(ISubject obj){
		this.obserable = obj;
		obserable.registerObservers(this);
	}
	
	@Override
	public void update(ISubject obj) {
		System.out.println("update now!"+this.toString());
	}

}
